import request from '@/utils/request'

// 查询驻场片区2代列表
export function listStationGeneration2(query) {
  return request({
    url: '/StationGeneration2/StationGeneration2/list',
    method: 'get',
    params: query
  })
}

// 查询驻场片区2代详细
export function getStationGeneration2(id) {
  return request({
    url: '/StationGeneration2/StationGeneration2/' + id,
    method: 'get'
  })
}

// 新增驻场片区2代
export function addStationGeneration2(data) {
  return request({
    url: '/StationGeneration2/StationGeneration2',
    method: 'post',
    data: data
  })
}

// 修改驻场片区2代
export function updateStationGeneration2(data) {
  return request({
    url: '/StationGeneration2/StationGeneration2',
    method: 'put',
    data: data
  })
}

// 删除驻场片区2代
export function delStationGeneration2(id) {
  return request({
    url: '/StationGeneration2/StationGeneration2/' + id,
    method: 'delete'
  })
}
